package com.niit.mapper;

import com.niit.entity.DormitoryAdmin;

import java.util.List;

public interface DormitoryAdminMapper {
    List<DormitoryAdmin> list();

    List<DormitoryAdmin> searchByUsername(String value);

    List<DormitoryAdmin> searchByName(String value);

    List<DormitoryAdmin> searchByTelephone(String value);

    void save(DormitoryAdmin dormitoryAdmin);

    void delete(Integer id);

    void update(DormitoryAdmin dormitoryAdmin);

    DormitoryAdmin findByUserName(String username);
}
